<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\peps_eip\controller;

/**
 * AppbaseController 类
 *
 * @since version:1.0(2016-11-18); author:SoChishun(14507247@qq.com); desc:Added.
 */
class AppbaseController extends \Think\Controller {

    /**
     * 空操作，用于输出404页面
     * @since 1.0 <2015-3-23> SoChishun Added.
     */
    public function _empty() {
        $this->display('XPage/404');
    }

    public function _initialize() {
        $menudata = array(
            array('title' => '公司概况', 'url' => U('Info/gongsijianjie'), 'children' => array(
                    array('title' => '公司简介','code'=>'gongsijianjie', 'url' => U('Info/gongsijianjie')),
                    array('title' => '组织架构','code'=>'zuzhijiagou', 'url' => U('Info/zuzhijiagou')),
                    array('title' => '工作流程','code'=>'gongzuoliucheng', 'url' => U('Info/gongzuoliucheng')),
                    array('title' => '部门职责','code'=>'bumenzhize', 'url' => U('Info/bumenzhize')),
                )),
            array('title' => '新闻公告', 'url' => U('News/gonggao'), 'children' => array(
                    array('title' => '新闻动态', 'code' => 'xinwendongtai', 'url' => U('News/xinwendongtai')),
                    array('title' => '公告通知', 'code' => 'gonggaotongzhi', 'url' => U('News/gonggaotongzhi')),
                    array('title' => '行业动态', 'code' => 'hangyedongtai', 'url' => U('News/hangyedongtai')),
                )),
            array('title' => '文件制度', 'url' => U('Form/guizhangzhidu'), 'children' => array(
                    array('title' => '规章制度', 'url' => U('Form/guizhangzhidu')),
                    array('title' => '公司文件', 'url' => U('Form/gongsiwenjian')),
                    array('title' => '办公表单', 'url' => U('Form/bangongbiaodan')),
                    array('title' => '营业表单', 'url' => U('Form/yingyebiaodan')),
                    array('title' => '法律法规', 'url' => U('Form/falvfagui')),
                )),
            array('title' => '党政工团', 'url' => U('Affairs/dangzhengjianshe'), 'children' => array(
                    array('title' => '党政建设', 'url' => U('Affairs/dangzhengjianshe')),
                    array('title' => '公司简报', 'url' => U('Affairs/gongsijianbao')),
                    array('title' => '企务公开', 'url' => U('Affairs/qiwugongkai')),
                    array('title' => '工会快讯', 'url' => U('Affairs/gonghuikuaixun')),
                )),
            array('title' => '公司通讯', 'url' => U('Contacts/bangongdianhua'), 'children' => array(
                    array('title' => '办公电话', 'url' => U('Contacts/bangongdianhua')),
                    array('title' => '电子邮件', 'url' => U('Contacts/dianziyoujian')),
                )),
            array('title' => '部门分享', 'url' => U('Share/gongdianbu'), 'children' => array(
                    array('title' => '供电部', 'url' => U('Share/gongdianbu')),
                    array('title' => '通信部', 'url' => U('Share/tongxinbu')),
                )),
            array('title' => '网上营业厅', 'url' => U('Shop/index')),
        );
        $this->assign('menu_data', $menudata);
    }

}
